/**
 * 
 */
package org.crud4j.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotations is usefull for old fashioned relationships, i.e.
 * relationships as before hibernate. <br>
 * In circumstances where an object keeps another's object id this annotation
 * indicates crud4j the related class in order to find the given instance. <br>
 * The return type of the annotated field is a CRUD bean and the relationship is
 * showed in the view layer.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CrudForeignKey {

	Class value();

}
